package com.linln.modules.receiverecord.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linln.modules.receiverecord.mapper.ReceiveRecordMapper;
import com.linln.modules.receiverecord.domain.ReceiveRecord;
import com.linln.modules.receiverecord.service.ReceiveRecordService;

/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.modules.receiverecord.service.impl
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.modules.receiverecord.service.impl
 * @Description: TODO
 * @date Date : 2021年01月09日 15:07
 */

@Service
public class ReceiveRecordServiceImpl extends ServiceImpl<ReceiveRecordMapper, ReceiveRecord> implements ReceiveRecordService {
    @Autowired
    private ReceiveRecordMapper receiveRecordMapper;

    @Override
    public Map<String, ReceiveRecord> getGrantTicketList(long userId) {
        return receiveRecordMapper.getReceiveRecordList(userId);
    }

    @Override
    public boolean addReceiveRecord(ReceiveRecord receiveRecord) {
        return this.save(receiveRecord);
    }
}
